package com.qunar.dyds.util;

import java.util.List;

import com.qunar.dyds.entity.Competitor;

public class SecurityUtil {

    public static Competitor mask(Competitor c) {
        c.setEmail(null);
        c.setGrade(null);
        c.setMajor(null);
        c.setMobile(null);
        c.setPassword(null);
        c.setSchool(null);
        c.setStatus(null);
        c.setUpdated(null);

        return c;
    }

    public static List<Competitor> mask(List<Competitor> list) {
        for (Competitor c : list) {
            mask(c);
        }
        return list;
    }
}
